from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

global server
server = 'mikey'


if server == 'mikey':
	urlpatterns = patterns('',
	(r'^', include('nerdbot.cards.urls')),
	(r'^cards/', include('nerdbot.cards.urls')),
	(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
			{'document_root': 'C:/Documents and Settings/mlintz/My Documents/Django Projects/NerdBot/Branch/Jay/nerdbot/templates/cards'}),
	(r'^img/(?P<path>.*)$', 'django.views.static.serve',
			{'document_root': 'C:/Documents and Settings/mlintz/My Documents/Django Projects/NerdBot/Branch/Jay/nerdbot/templates/cards/img'}),
	(r'^postimg/(?P<path>.*)$', 'django.views.static.serve',
			{'document_root': 'C:/Documents and Settings/mlintz/My Documents/Django Projects/NerdBot/Branch/Jay/nerdbot/postimg'}),
	(r'^admin/(.*)', admin.site.root),
	)

if server == 'matt':
	urlpatterns = patterns('',
	(r'^cards/', include('nerdbot.cards.urls')),
	(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
			{'document_root': 'C:/Documents and Settings/mritter/Desktop/svn/cards/Jay/nerdbot/templates/cards'}),
	(r'^img/(?P<path>.*)$', 'django.views.static.serve',
			{'document_root': 'C:/Documents and Settings/mritter/Desktop/svn/cards/Jay/nerdbot/templates/cards/img'}),
	(r'^postimg/(?P<path>.*)$', 'django.views.static.serve',
			{'document_root': 'C:/Documents and Settings/mritter/Desktop/svn/cards/Jay/nerdbot/postimg'}),
	(r'^admin/(.*)', admin.site.root),
	)


if server == 'jay':
	urlpatterns = patterns('',
		# Example:
		# (r'^nerdbot/', include('nerdbot.foo.urls')),
	(r'^cards/', include('nerdbot.cards.urls')),
	(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
			{'document_root': '/home/jayesh/workspace/learning-cards/Branch/Jay/nerdbot/templates/cards'}),
	(r'^img/(?P<path>.*)$', 'django.views.static.serve',
			{'document_root': '/home/jayesh/workspace/learning-cards/Branch/Jay/nerdbot/templates/cards/img'}),
	(r'^postimg/(?P<path>.*)$', 'django.views.static.serve',
			{'document_root': '/home/jayesh/workspace/learning-cards/Branch/Jay/nerdbot/postimg'}),
	(r'^admin/(.*)', admin.site.root),

	)
if server == 'deployed':
	urlpatterns = patterns('',
		# Example:
		# (r'^nerdbot/', include('nerdbot.foo.urls')),
	(r'^', include('nerdbot.cards.urls')),
	#(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
	#		{'document_root': '/home/jayesh/workspace/learning-cards/Branch/Jay/nerdbot/templates/cards'}),
	#(r'^img/(?P<path>.*)$', 'django.views.static.serve',
	#		{'document_root': '/home/jayesh/workspace/learning-cards/Branch/Jay/nerdbot/templates/cards/img'}),
	#(r'^postimg/(?P<path>.*)$', 'django.views.static.serve',
	#		{'document_root': '/home/jayesh/workspace/learning-cards/Branch/Jay/nerdbot/postimg'}),
	(r'^admin/(.*)', admin.site.root),

	)
			
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
